home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / xgrab.lha / xgrab / include / att.h next >
Encoding:
C/C++ Source or Header  |  1990-03-06  |  1.1 KB  |  48 lines

  1. /**
  2.    GRAB Graph Layout and Browser System
  3.  
  4.    Copyright (c) 1989, Tera Computer Company
  5.  **/
  6.  
  7.   /* header file for accessing built-in attributes (C++ version) */
  8.  
  9. #ifndef att_h
  10. #define att_h
  11.  
  12. #include <InterViews/brush.h>
  13. #include <InterViews/color.h>
  14.  
  15. class Brush;
  16. class Color;
  17.  
  18.   /* shape types, brush types, color types */
  19. enum NShape {rectangle, circle, diamond, oval, npoint, double_box, line};
  20. enum BType {solidb, bsolidb, dottedb, bdottedb, dashedb, bdashedb};
  21. enum CType {blackc, grayc, whitec};
  22.  
  23. enum AttType {shapet, brusht, colort};
  24.  
  25. static const numshape = 7;
  26. static const numbrush = 6;
  27. static const numcolor = 3;
  28.  
  29. static const default_shape = rectangle;
  30. static const default_brush = solidb;
  31. static const default_color = blackc;
  32.  
  33. extern Brush* brushes[numbrush];
  34. extern Color* palette[numcolor];
  35.  
  36.   /* get the next/prev shape/color/brush.  Uses wraparound */
  37. NShape NextShape(NShape);
  38. CType NextColor(CType);
  39. BType NextBrush(BType);
  40. NShape PrevShape(NShape);
  41. CType PrevColor(CType);
  42. BType PrevBrush(BType);
  43.  
  44. static const db_margin = 3;    /* margin between inner and outer boxes for a 
  45.                    double box */
  46.  
  47. #endif
  48.